<?php
use Illuminate\Routing\Router;

Route::group([
    'prefix' => 'admin/mcnUser',
    'namespace' => 'Frieza\\Modules\\McnUser\\Controllers',
    'middleware' => [
        'web',
        'admin'
    ],
], function (Router $router) {
    $router->get('/list', 'McnUserController@index');
    $router->get('/detail/{uid}', 'McnUserDetailController@index');
    $router->get('/save/{uid}', 'McnUserSaveController@index');
    $router->get('/list/{id}/edit', 'McnUserController@edit');
    $router->post('/list/save', 'McnUserController@editSubmit');
    $router->get('/list/create', 'McnUserController@add');
    $router->get('/list/export', 'McnUserController@export');
    $router->get('/getprofession', 'McnUserController@getProfession');

    $router->post('/list/uploadBill', 'McnUserController@uploadFileToCreate');
    $router->get('/download/ablityTemplate', 'McnUserController@downloadAbilityTemplate');
    $router->get('/download/BillTemplate', 'McnUserController@downloadBillTemplate');
    $router->get('/download/DataTemplate', 'McnUserController@downloadDataTemplate');
    $router->post('/list/uploadAbility', 'McnUserController@uploadAbility');
    $router->post('/list/uploadBill', 'McnUserController@uploadBill');
    $router->post('/list/uploadData', 'McnUserController@uploadData');
    $router->get('/list/account/{uid}', 'McnUserController@account');


    $router->get('/output', 'McnOutputController@index');
    $router->get('/output/export', 'McnOutputController@export');
});